package com.woniu.order.service.impl;

import com.woniu.common.utils.PageData;
import com.woniu.common.utils.ResponseData;
import com.woniu.order.dto.ZfPowerUserDto;
import com.woniu.order.feign.ZsbUumsFeign;
import com.woniu.order.mapper.ZsbJwtMapper;
import com.woniu.order.pojo.ZsbJwt;
import com.woniu.order.service.ZsbUumsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ZsbUumsServiceImpl implements ZsbUumsService {
    @Autowired
    private ZsbUumsFeign zsbUumsFeign;
    @Autowired
    private ZsbJwtMapper zsbJwtMapper;
    @Override
    public ResponseData<?> queryAll(String roleId) {

        return zsbUumsFeign.queryByRoleId( roleId);

    }

    @Override
    public ZsbJwt getUser() {
        return zsbJwtMapper.queryJwtZsbJwt();

    }
}
